<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateChatgroupsTable extends Migration
{
    //提交
    public function up()
    {
        Schema::create('chatgroups', function (Blueprint $table) {
            $table->increments('id');
            $table->timestamps();
            $table->string('sort')->default(0)->comment('排序|input');
            $table->tinyInteger('actived')->default(1)->comment('用户组状态|select|1:是,2:否');
            $table->string('groupname',100)->comment('名称|input');
            $table->string('groupname_en',100)->comment('英文名称|input');
            $table->string('description', 250)->comment('描述|textarea');

//            $table->text('content')->comment('内容|simditor');
//            $table->string('thumb')->comment('缩略图|image');
//            $table->integer('click')->comment('查看次数|input');
//            $table->tinyInteger('iscommend')->default(1)->comment('推荐|radio|1:是,2:否');
        });
    }

    //回滚
    public function down()
    {
        Schema::dropIfExists('chatgroups');
    }
}
